<template>
    <div class="dev-platform">
        <div class="quanty-title">
            <label>{{product.titleZh}}</label>
        </div>
        <div class="quanty-title-zh">
            <label>{{product.titleEn}}</label>
        </div>
        <div class="quanty-content">
            <p v-html="product.content"></p>
        </div>
        <img :src="showUrl + id">
    </div>

</template>

<script>
export default {
    data() {
        return {
            product: {},
            id: 0,
            showUrl: this.$uploadPath + "/product/getImage?id=0"
        };
    },
    methods: {
        getProduct() {
            this.id = this.$router.history.current.query.id;
            this.$http("/product/getProductById?id=" + this.id).then(
                response => {
                    this.product = response.data;
                }
            );
        }
    },
    mounted() {
        this.getProduct();
    }
};
</script>